using System;

namespace snacks {
    public struct Vector: IEquatable<Vector>
    {
        public int x, y;
        public Vector(int _x, int _y){
            x = _x; y  =_y;
        }

        public static Vector operator+ (Vector a, Vector b) {
            return new Vector(a.x + b.x, a.y + b.y);
        }

        public override string ToString()
        {
            return $"x:{x}, y:{y}";
        }

        public bool Equals(Vector other)
        {
            return x == other.x && y == other.y;
        }

        public static Vector operator- (Vector a)
        {
            return new Vector(-a.x, -a.y);
        }

        public static bool operator ==(Vector left, Vector right)
        {
            return left.Equals(right);
        }

        public static bool operator !=(Vector left, Vector right)
        {
            return !(left == right);
        }
    }
}